package com.estate.utils;

import java.util.UUID;

public class FileUtil {
	
	public static final String FILE_ROOT_DIR = "D:/";
	public static final String COMPANYSTUFF_FILE = FileUtil.FILE_ROOT_DIR+"companyStuffFile/";
	public static final String LAWS_FILE = FileUtil.FILE_ROOT_DIR+"lawsFile/";

	public static String getReplaceFileName(String realFileName){
		String fileName = "";
		String fileType = "";
		if(realFileName.contains(".")){
			fileType = realFileName.substring(realFileName.lastIndexOf("."), realFileName.length());
		}
		fileName = UUID.randomUUID().toString()+fileType;
		
		return fileName;
	}
}
